package com.ydj.framework.third.oss.res;

import com.ydj.framework.protocol.JsonBaseResponse;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

@Setter
@Getter
@Accessors(chain = true)
public class TransferToOssByUrlDto extends JsonBaseResponse {
	@Retention(RetentionPolicy.SOURCE)
	public @interface TransferToOssResult {
	    int 上传成功 = 0;
	    int 下载文件失败 = 1;
	    int 上传失败 = 2;
	}

	/**
	 * 上传结果
	 */
	private Integer result;

	/**
	 * 上传成功后的 OSS URL
	 */
	private String ossUrl;
}